﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Store/StoreMastePage.Master" AutoEventWireup="true" CodeBehind="ManagePriority.aspx.cs" Inherits="logicunivesityinventorystore.Store.ManagePriority" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="../StyleSheet.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" runat="server" 
    contentplaceholderid="ContentPlaceHolder2">
        <h1>Manage Priority</h1>
            <table>
                <tr>
                    <td>
                        <asp:GridView ID="gvPriorityList" runat="server" AutoGenerateColumns="False" 
                            DataSourceID="ObjectDataSource2" Height="144px" Width="363px">
                            <Columns>
                                <asp:TemplateField HeaderText="Department Code" Visible="False">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("DepartmentCode") %>'></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="lblDeptCode" runat="server" Text='<%# Bind("DepartmentCode") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField DataField="DepartmentName" HeaderText="Departments" />
                                <asp:BoundField DataField="PriorityName" HeaderText="Current Priority" />
                                <asp:TemplateField HeaderText="Priority">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:DropDownList ID="ddlPriority" runat="server" 
                                             DataSourceID="ObjectDataSource3" DataTextField="PriorityName" DataValueField="PriorityID"
                                             Height="25px" Width="111px" ViewStateMode="Enabled">
                                        </asp:DropDownList>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Priority ID" Visible="False">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("PriorityID") %>'></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="Label1" runat="server" Text='<%# Bind("PriorityID") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                         </asp:GridView>
                        <asp:ObjectDataSource ID="ObjectDataSource2" runat="server" 
                            SelectMethod="FindAllDepartmentAndPriority" 
                            TypeName="BusinessLogicLayer.DepartmentFacade"></asp:ObjectDataSource>
                    </td>                                  
                        <asp:ObjectDataSource ID="ObjectDataSource3" runat="server" 
                            SelectMethod="FindAllPriority" TypeName="BusinessLogicLayer.DepartmentFacade">
                        </asp:ObjectDataSource>                            
                </tr>
                <tr>
                    <td >                        
                        <br />
                    </td>
                </tr>
                <tr>
                    <td align="center" >
                        <asp:ScriptManager ID="ScriptManager1" runat="server">
                        </asp:ScriptManager>
                       <asp:Button ID="btnSave" runat="server" Text="Save" Width="56px" 
                            onclick="btnSave_Click" CssClass="ButtonStyle" />                    
                        <asp:ConfirmButtonExtender ID="btnSave_ConfirmButtonExtender" runat="server" 
                            ConfirmText="Are You sure you want to change?" Enabled="True" TargetControlID="btnSave">
                        </asp:ConfirmButtonExtender>                                         
                    </td>                   
                </tr>
            </table>           
            </asp:Content>
<asp:Content ID="Content3" runat="server" 
    contentplaceholderid="ContentPlaceHolder3">
           
                </asp:Content>
<asp:Content ID="Content4" runat="server" 
    contentplaceholderid="ContentPlaceHolder4">
            
                </asp:Content>
<asp:Content ID="Content5" runat="server" 
    contentplaceholderid="ContentPlaceHolder5">
           
                </asp:Content>
<asp:Content ID="Content6" runat="server" 
    contentplaceholderid="ContentPlaceHolder1">
          
                </asp:Content>
<asp:Content ID="Content7" runat="server" 
    contentplaceholderid="ContentPlaceHolder6">
       
                </asp:Content>


